#include #include #include "misc/CMSTypes.h" #include "misc/CmConvert.h" #include "LCD/LCD_LMG6381.h" #include "GPS/GPS.h" #include "GPS/GPSFormat.h" #include "MMC/MMC.h" #include "IO/IO.h" #define DB_LED(state) { DDRB = 0xff; PORTB = ~(1< #include #include #include "MENU/Menu.h" const char cstrMenuTitle[] PROGMEM = "The Main Menu"; const char cstrMenu1[] PROGMEM = "Menu Item 1!"; const char cstrMenu2[] PROGMEM = "Menu Item 2!"; const char cstrMenu3[] PROGMEM = "Menu Item 3!"; const char cstrMenu4[] PROGMEM = "Menu Item 4!"; const char cstrMenu5[] PROGMEM = "Menu Item 5!"; const char cstrMenu6[] PROGMEM = "Menu Item 6!"; const char cstrMenu7[] PROGMEM = "Menu Item 7!"; const char cstrMenu8[] PROGMEM = "Menu Item 8!"; tMenu_Definition menu_Main = { cstrMenuTitle, 8, { cstrMenu1, cstrMenu2, cstrMenu3, cstrMenu4, cstrMenu5, cstrMenu6, cstrMenu7, cstrMenu8, } }; int main( void ) { LCD_PortInit(); // MMC_PortInit(); IO_PortInit(); LCD_Init(); // LCDC_Init(); IO_Init(); while(1) { BYTE b = Menu_ShowAndSelect( &menu_Main ); LCD_ClearAndResetScreen_Fast(); LCD_PutChar( '0' + b, FALSE ); IO_Key_GetMsg_Wait(); } return 0; }